//
//  LSResListManager.m
//  听说弱点强化训练
//
//  Created by 盛超 on 2018/8/29.
//  Copyright © 2018年 盛超. All rights reserved.
//

#import "LSResListManager.h"

@implementation LSResListManager

- (void)requestWithCompltionSuccess:(void (^)(LSModelLSResList *))success failuer:(void (^)(NSString *))failure {
    
    self.requestUrl = @"api/ZXYYTS/W_ZXYYTS_GetTSPackage";

    [self requestGetMethodWithSuccess:^(id responseObject) {
        
        NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableLeaves error:nil];
        NSLog(@"%@",[NSObject objectToJson:dict]);
        LSModelLSResList *resList = [LSModelLSResList yy_modelWithDictionary:dict];
        success(resList);
        
    } Failure:^(NSError *error) {
        failure(error.localizedDescription);
    }];
}

@end
